package com.ksyun.campus.metaserver.services;

import com.ksyun.campus.metaserver.domain.DataServerInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MetaService {

    @Resource
    IDataServerPicker dataServerPicker;

    public DataServerInfo pickDataServer() {
        // todo 通过zk内注册的ds列表，选择出来一个ds，用来后续的wirte
        // 需要考虑选择ds的策略？负载
        return dataServerPicker.pick();
    }




}
